var urlIP ="http://172.21.11.205:8098"; 
function getData(processData,url,param,loading){
		$.ajax({ 
		type: "post", 
		url : url, 
		dataType:'json',
		data: param,  
		beforeSend:loading,
		success: processData});
	}

function     GetQueryString(name)   
{   
     var     reg     =   new   RegExp("(^|&)"+     name     +"=([^&]*)(&|$)");   
     var     r     =     window.location.search.substr(1).match(reg);   
     if     (r!=null)   return     unescape(r[2]);   return   null;   
}
	

function Session()
{
    var SessionObj = null;
    this.init = function()
 {
            SessionObj = document.createElement('input');
  SessionObj.type = "hidden";
  SessionObj.id = "Sessionid";
  SessionObj.style.behavior = "url('#default#userData')" 
        document.body.appendChild(SessionObj);
 }
   this.load = function(sessionName)
 {
            if (sessionName != null && sessionName != "")
  {
             SessionObj.load("s");
   return SessionObj.getAttribute(sessionName);
  }
 }

 this.save = function(objId,attribute,sessionName)
 {
             var obj = null;
  if (document.getElementById(objId) != null) obj = document.getElementById(objId)
  else return;
            var value = obj[attribute];
 
        if (sessionName != null && sessionName != "")
  {
             SessionObj.setAttribute(sessionName,value)
   SessionObj.save("s")
     }
 }

 this.init(); 
}



function dialog(message,timeout){
	new Dialog(message,{time:timeout}).show();
}
